package com.hnluchuan.bmjlearning.enums;

/**
 * 短信 1, 更改密码
 */
public enum SmsType {
    // 请根据实际情况改成对应的值和备注
	Type1(1, "更改密码"),
	Type2(2, "类型2");
    
    private int value;
    private String remark;
    
    private SmsType(int value, String remark) {
    	this.value = value;
    	this.remark = remark;
    }
    
    public int getValue() {
    	return value;
    }
    public String getRemark() {
    	return remark;
    }
    
    public static SmsType getByValue(int value) {
    	for (SmsType o : SmsType.values()) {
    		if (o.getValue() == value) {
    			return o;
    		}
    	}
    	return null;
    }
}
